<?php require 'lib/session_verify.php' ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8"> 
		<title>在线考试系统</title>
		<!--<link rel="icon" href="/favicon.ico" type="image/x-icon" />-->
		<!--<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />-->
		<script type="application/javascript" src="js/verify.js"></script>
		<link type="text/css" href="css/register.css" rel="stylesheet" >
		<link type="text/css" href="css/header.css" rel="stylesheet" >
	</head>
	<body>
		<div id="wrapper">
			<?php include 'header.php'; ?>
			<div id="maincontent" style="width:100%">
				<div style="margin: 100px auto; width:425px">
					<form action="lib/change_pass_process.php" method="post">
						<div>
							<label>旧密码</label> 
							<input id="old_pass" name="old_pass" type="password" <?php if(array_key_exists('err_old_pass', $_GET)) { ?> value="<?= $_GET['err_old_pass'] ?>" <?php } ?> maxlength="16"/>
							<span id="warn_old_pass" class="warn" <?php if(!array_key_exists('err_old_pass', $_GET)) { ?>style="display:none" <?php } ?>>旧密码输入有误!</span>
						</div>
						<div>
							<label>新密码</label> 
							<input id="new_pass" name="new_pass" type="password" maxlength="16"/>
							<span id="warn_new_pass" class="warn" <?php if(!array_key_exists('err_new_pass', $_GET)) { ?>style="display:none" <?php } ?>>密码应不少于6位</span>
						</div>
						<div>
						
							<label>确认新密码</label> 
							<input id="con_new_pass" name="con_new_pass" type="password" maxlength="16"/>
							<span id="warn_con_pass" class="warn" <?php if(!array_key_exists('err_con_pass', $_GET) || array_key_exists('err_new_pass', $_GET)) { ?>style="display:none" <?php } ?>>两次密码不一致</span> 
						
						</div>
						<div>
							<label></label>
							<input id="change_pass" type="button" value="确认"/>
							<span class="warn"></span>
						</div>
					</form>
				</div>
			</div>
			<div id="footer"></div>
		</div>
		<script type="application/javascript" src="js/change_pass.js"></script>
	</body>
</html>
